home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / kdelibs-data.preinst < prev    next >
Text File  |  2008-10-06  |  662b  |  36 lines

  1. #!/bin/sh -e
  2.  
  3. FILE="/etc/xdg/menus/applications.menu"
  4. MD5SUM332="3750f06e08cfd048952f4cd82b97652c"
  5. MD5SUM340="ea26be9e934fb23c04b0b1409706bace"
  6.  
  7. case "$1" in
  8.  
  9.     upgrade)
  10.     rm -f /etc/kde3/colors/40\ Colors
  11.     rm -f /etc/kde3/colors/Royal
  12.     rm -f /etc/kde3/colors/Web
  13.     rm -f /etc/kde3/ktexteditor_autobookmarkerrc
  14.     [ -f "$FILE" ] || exit 0
  15.     MD5SUMOLD=`md5sum $FILE | awk '{print $1}'`
  16.     if dpkg --compare-versions "$2" lt "4:3.4.0-0pre5"; then
  17.         if [ "$MD5SUM332" = "$MD5SUMOLD" ] || [ "$MD5SUM340" = "$MD5SUMOLD" ]; then
  18.             rm -f "$FILE"
  19.         fi
  20.     fi
  21.     ;;
  22.  
  23.     install|abort-upgrade)
  24.     ;;
  25.  
  26.     *)
  27.     echo "preinst called with unknown argument \`$1'" >&2
  28.     exit 1
  29.     ;;
  30.  
  31. esac
  32.  
  33.  
  34.  
  35. exit 0
  36.